package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.TrianRechargeOrder;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by MJS on 2017/6/26.
 */
public interface TrainRechargeOrderRepository extends JpaRepository<TrianRechargeOrder, Long> {
    public TrianRechargeOrder findByOutTradeNo(String outTradeNo);

    public TrianRechargeOrder findByTradeNo(String tradeNo);


    public TrianRechargeOrder findByOutTradeNoAndUserId(String outTradeNo, long userId);
}
